﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace YogaStudio.Data.Domain
{
    public class Course
    {
        [Key]
        public int Id { get; set; }

        [Required]
        [Display(Name = "Course Code")]
        public string CourseCode { get; set; }
        [Required]
        [Display(Name = "Course Name")]
        public string CourseName { get; set; }

        [Required]
        [Display(Name = "Course Descritpion")]
        [DataType(DataType.MultilineText)]
        public string CourseDescription { get; set; }

        // There might be no prerequisite course for a course so don't make it 
        [Display(Name = "Course Prerequisite")]
        public int? PrerequisiteId { get; set; }
        public virtual Course Prerequisite { get; set; }

        public virtual List<Section> Sections { set; get; }
    }
}